package cn.shopifymall.springboot;

import cn.shopifymall.springboot.config.MyConfig;
import cn.shopifymall.springboot.pojo.Pet;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @Author 孤风雪影
 * @Email gitee.com/efairy520
 * @Date 2024/12/29 3:51
 * @Version 1.0
 */
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(Application.class, args);
        MyConfig myConfig = context.getBean(MyConfig.class);
        System.out.println("myConfig = " + myConfig);
        Pet pet = context.getBean(Pet.class);
        System.out.println(pet.getClass());
    }
}
